package com.coder520.attend.mapper;

import com.coder520.attend.pojo.Attend;
import com.coder520.attend.vo.QueryCondtion;
import com.coder520.common.page.PageQueryBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AttendMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Attend record);

    int insertSelective(Attend record);

    Attend selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Attend record);

    int updateByPrimaryKey(Attend record);

    Attend selectTodaySignRecode(Long userId);


    int selectCountByCondtion(QueryCondtion condtion);

    List<Attend> selectListByCondtion(QueryCondtion condtion);

    List<Attend> selectTodaySignRecodeList();


    List<Long> selectTodayAbsence();


    List<Attend> selectTodayEveningAbsence();

    void batchInsert(@Param("list") List<Attend> attendList);
}